package demo2.log.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;


import javax.annotation.PostConstruct;

/**
 * @Author quan
 * @Description 自定义日志
 * @Date 2023/7/20 20:45
 */
@Controller
public class Demo1_DefineLog {
    //打印的对象
    private Logger logger = LoggerFactory.getLogger(Demo1_DefineLog.class);
    private Logger logger1 = LoggerFactory.getLogger("aaaaa");
    @PostConstruct
    public void postConstruct(){
        logger.info("logger打印的日志信息-----");
        logger1.info("logger1打印的日志信息######");
    }
}
